import com.mosesSupposes.fuse.*;
import flash.geom.Matrix;
class com.Lithyem.NSGS.Profiles.GradientBlock extends MovieClip{

	
	var start_color:Number;
	var end_color:Number;
	
	var reg_mc:MovieClip;
	
	function GradientBlock(){
		reg_mc._visible = false;
	}
	
	function init(s:Number,e:Number):Void{
		
		
		var myMatrix:Matrix = new Matrix();
		myMatrix.createGradientBox(reg_mc._width, reg_mc._height, 1.6, 0, 0);
		var colors:Array = [s, e];
		var alphas:Array = [100, 200];
		var ratios:Array = [0, 255];
		
		this.beginGradientFill("linear", colors, alphas, ratios, myMatrix);
		this.lineTo(0, reg_mc._height);
		this.lineTo(reg_mc._width, reg_mc._height);
		this.lineTo(reg_mc._width, 0);
		this.lineTo(0, 0);
		
	}
	
}